package cn.iune.erp.purchase;


import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IPurchaseOrderDetailDao {
	
	public void insert(PurchaseOrderDetail obj);
	
	public void delete(String fID);
	
	public PurchaseOrderDetail update(PurchaseOrderDetail obj);

	public List<PurchaseOrderDetail> getAll();
	
	public List<PurchaseOrderDetail> getByMasterID(String fMasterID);
	
	public PurchaseOrderDetail getByID(String fID);

	public List<PurchaseOrderDetail> getByStorageNo(String storageNo, String factoryNo, String enterpriseNo);

	JSONObject query(JSONObject data) throws SQLException;

	PurchaseOrderDetail getByNo(String stockNo, String serialNo, String enterpriseNo);

	JSONObject create(JSONObject data);

}
